class Invitation < ActionMailer::Base

  def invite(sender, receiver, sent_at = Time.now)
    @subject    = "您的朋友邀请您加入#{Configuration.site_name}"
    @recipients = receiver
    @from       = "#{sender.username}<admin@thoughtworkers.org>"
    @sent_on    = sent_at
    @content_type = 'text/html'    
    @body["sender"] = sender
  end
end
